<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>八维贷</title>
    <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
    <div id="app">
        <center>
            <hr>
            <div align="right">
                欢迎{{mobile}},<a href="javascript:void(0)" @click="logout">[退出]</a>
            </div>
            <hr>
            <img src="logo.png" width="60%">
            <div>
                <h2>恭喜您！实名认证通过！</h2>
                <h3><a href="main.html">返回首页</a>，开立存管账户</h3>
            </div>
            <div style="width: 100%;position: absolute;bottom: 0">
                <hr>
                www.bwyjs.com @
                云计算1810A
                <hr>
            </div>
        </center>
    </div>
    <script>
        new Vue({
            el:'#app',
            data() {
                return {
                    mobile:''
                };
            },
            methods: {
                logout(){
                    localStorage.removeItem("mobile")
                    location.href="index.html"
                }
            },
            created(){
                this.mobile = localStorage.getItem("mobile");
                if(this.mobile==undefined){
                    location.href="index.html"
                }
            }
        })
    </script>
</body>
</html>